﻿#pragma once

#include "VecSet_Iterator.h"
#include "Generation/Piecemeal/FArray2D.h"

class FVecSet
{
public:
	FArray2D<int>* Values;
	int Sentinel;

	int XMin;
	int XMax;
	int YMin;
	int YMax;

	FVecSet(int width, int height);
	void Add(FVec* pos);
	void Clear();
	bool Contains(FVec* pos);

public:
	FVecSet_Iterator begin() { return FVecSet_Iterator(*this, 0); }

	FVecSet_Iterator end() { return FVecSet_Iterator(*this, 1); }
};